<template>
  <div class="wrap-404">
    <div>
      <h1 class="error">404</h1>
      <h3>页面未找到</h3>
      <button @click="getBack">返回上一页</button>
    </div>
  </div>
</template>

<script>
export default {
  name: "is404",
  methods: {
    getBack() {
      this.$router.go(-1);
    }
  }
};
</script>
<style scoped>
.wrap-404 {
  height: 100vh;
  width: 100%;
  position: relative;
}
.wrap-404 div {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  text-align: center;
  transform: translateY(-50%);
}
.error {
  font-size: 4rem;
  text-shadow: 0 0 10px 40px rgab(170, 170, 170, 0.5);
}
.wrap-404 div button {
  border: none;
  color: white;
  background-color: #323232;
  padding: 10px 40px;
  border-radius: 8px;
  box-shadow: 0 10px 40px -10px rgba(0, 64, 128, 0.5);
}
</style>
